package com.zheng.business.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class BusinessOrderUmbrellaConsumption implements Serializable {
    /**
     * 编号
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 订单号
     *
     * @mbg.generated
     */
    private String orderno;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createtime;

    /**
     * 隶属代理
     *
     * @mbg.generated
     */
    private Integer agentid;

    /**
     * 昵称
     *
     * @mbg.generated
     */
    private String nickname;

    /**
     * 用户id
     *
     * @mbg.generated
     */
    private Integer userid;

    /**
     * 雨伞编码
     *
     * @mbg.generated
     */
    private String umbrellaCode;

    /**
     * 雨伞芯片id
     *
     * @mbg.generated
     */
    private String chipNumber;

    /**
     * 成本价
     *
     * @mbg.generated
     */
    private BigDecimal costprice;

    /**
     * 市场价
     *
     * @mbg.generated
     */
    private BigDecimal marketprice;

    /**
     * 机器编码
     *
     * @mbg.generated
     */
    private String machineId;

    /**
     * 租出地址
     *
     * @mbg.generated
     */
    private String rentAdress;

    /**
     * 伞道编码
     *
     * @mbg.generated
     */
    private String pathCode;

    /**
     * 伞道号
     *
     * @mbg.generated
     */
    private Integer pathNumber;

    /**
     * 订单状态
     *
     * @mbg.generated
     */
    private Integer status;

    /**
     * 失败原因
     *
     * @mbg.generated
     */
    private Integer faultstatus;

    /**
     * 归还机器编码
     *
     * @mbg.generated
     */
    private String returnMachineId;

    /**
     * 归还地址
     *
     * @mbg.generated
     */
    private String returnAdress;

    /**
     * 归还伞道编码
     *
     * @mbg.generated
     */
    private String returnPathCode;

    /**
     * 归还伞道号
     *
     * @mbg.generated
     */
    private Integer returnPathNumber;

    /**
     * 还伞芯片id
     *
     * @mbg.generated
     */
    private String returnChipNumber;

    /**
     * 损失状态
     *
     * @mbg.generated
     */
    private Integer lostStatus;

    /**
     * 计费规则id
     *
     * @mbg.generated
     */
    private Integer rentRuleId;

    /**
     * 租金金额
     *
     * @mbg.generated
     */
    private BigDecimal rentamount;

    /**
     * 实付金额
     *
     * @mbg.generated
     */
    private BigDecimal payamount;

    /**
     * 折扣金额
     *
     * @mbg.generated
     */
    private BigDecimal discountedamount;

    /**
     * 支付方式
     *
     * @mbg.generated
     */
    private Integer paymethod;

    /**
     * 开始时间
     *
     * @mbg.generated
     */
    private Date begintime;

    /**
     * 结束时间
     *
     * @mbg.generated
     */
    private Date endtime;

    /**
     * 自动结束时间
     *
     * @mbg.generated
     */
    private Date autoendtime;

    /**
     * 封顶金额
     *
     * @mbg.generated
     */
    private BigDecimal limitamount;

    /**
     * 备注描述
     *
     * @mbg.generated
     */
    private String description;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderno() {
        return orderno;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getAgentid() {
        return agentid;
    }

    public void setAgentid(Integer agentid) {
        this.agentid = agentid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getUmbrellaCode() {
        return umbrellaCode;
    }

    public void setUmbrellaCode(String umbrellaCode) {
        this.umbrellaCode = umbrellaCode;
    }

    public String getChipNumber() {
        return chipNumber;
    }

    public void setChipNumber(String chipNumber) {
        this.chipNumber = chipNumber;
    }

    public BigDecimal getCostprice() {
        return costprice;
    }

    public void setCostprice(BigDecimal costprice) {
        this.costprice = costprice;
    }

    public BigDecimal getMarketprice() {
        return marketprice;
    }

    public void setMarketprice(BigDecimal marketprice) {
        this.marketprice = marketprice;
    }

    public String getMachineId() {
        return machineId;
    }

    public void setMachineId(String machineId) {
        this.machineId = machineId;
    }

    public String getRentAdress() {
        return rentAdress;
    }

    public void setRentAdress(String rentAdress) {
        this.rentAdress = rentAdress;
    }

    public String getPathCode() {
        return pathCode;
    }

    public void setPathCode(String pathCode) {
        this.pathCode = pathCode;
    }

    public Integer getPathNumber() {
        return pathNumber;
    }

    public void setPathNumber(Integer pathNumber) {
        this.pathNumber = pathNumber;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getFaultstatus() {
        return faultstatus;
    }

    public void setFaultstatus(Integer faultstatus) {
        this.faultstatus = faultstatus;
    }

    public String getReturnMachineId() {
        return returnMachineId;
    }

    public void setReturnMachineId(String returnMachineId) {
        this.returnMachineId = returnMachineId;
    }

    public String getReturnAdress() {
        return returnAdress;
    }

    public void setReturnAdress(String returnAdress) {
        this.returnAdress = returnAdress;
    }

    public String getReturnPathCode() {
        return returnPathCode;
    }

    public void setReturnPathCode(String returnPathCode) {
        this.returnPathCode = returnPathCode;
    }

    public Integer getReturnPathNumber() {
        return returnPathNumber;
    }

    public void setReturnPathNumber(Integer returnPathNumber) {
        this.returnPathNumber = returnPathNumber;
    }

    public String getReturnChipNumber() {
        return returnChipNumber;
    }

    public void setReturnChipNumber(String returnChipNumber) {
        this.returnChipNumber = returnChipNumber;
    }

    public Integer getLostStatus() {
        return lostStatus;
    }

    public void setLostStatus(Integer lostStatus) {
        this.lostStatus = lostStatus;
    }

    public Integer getRentRuleId() {
        return rentRuleId;
    }

    public void setRentRuleId(Integer rentRuleId) {
        this.rentRuleId = rentRuleId;
    }

    public BigDecimal getRentamount() {
        return rentamount;
    }

    public void setRentamount(BigDecimal rentamount) {
        this.rentamount = rentamount;
    }

    public BigDecimal getPayamount() {
        return payamount;
    }

    public void setPayamount(BigDecimal payamount) {
        this.payamount = payamount;
    }

    public BigDecimal getDiscountedamount() {
        return discountedamount;
    }

    public void setDiscountedamount(BigDecimal discountedamount) {
        this.discountedamount = discountedamount;
    }

    public Integer getPaymethod() {
        return paymethod;
    }

    public void setPaymethod(Integer paymethod) {
        this.paymethod = paymethod;
    }

    public Date getBegintime() {
        return begintime;
    }

    public void setBegintime(Date begintime) {
        this.begintime = begintime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Date getAutoendtime() {
        return autoendtime;
    }

    public void setAutoendtime(Date autoendtime) {
        this.autoendtime = autoendtime;
    }

    public BigDecimal getLimitamount() {
        return limitamount;
    }

    public void setLimitamount(BigDecimal limitamount) {
        this.limitamount = limitamount;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderno=").append(orderno);
        sb.append(", createtime=").append(createtime);
        sb.append(", agentid=").append(agentid);
        sb.append(", nickname=").append(nickname);
        sb.append(", userid=").append(userid);
        sb.append(", umbrellaCode=").append(umbrellaCode);
        sb.append(", chipNumber=").append(chipNumber);
        sb.append(", costprice=").append(costprice);
        sb.append(", marketprice=").append(marketprice);
        sb.append(", machineId=").append(machineId);
        sb.append(", rentAdress=").append(rentAdress);
        sb.append(", pathCode=").append(pathCode);
        sb.append(", pathNumber=").append(pathNumber);
        sb.append(", status=").append(status);
        sb.append(", faultstatus=").append(faultstatus);
        sb.append(", returnMachineId=").append(returnMachineId);
        sb.append(", returnAdress=").append(returnAdress);
        sb.append(", returnPathCode=").append(returnPathCode);
        sb.append(", returnPathNumber=").append(returnPathNumber);
        sb.append(", returnChipNumber=").append(returnChipNumber);
        sb.append(", lostStatus=").append(lostStatus);
        sb.append(", rentRuleId=").append(rentRuleId);
        sb.append(", rentamount=").append(rentamount);
        sb.append(", payamount=").append(payamount);
        sb.append(", discountedamount=").append(discountedamount);
        sb.append(", paymethod=").append(paymethod);
        sb.append(", begintime=").append(begintime);
        sb.append(", endtime=").append(endtime);
        sb.append(", autoendtime=").append(autoendtime);
        sb.append(", limitamount=").append(limitamount);
        sb.append(", description=").append(description);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BusinessOrderUmbrellaConsumption other = (BusinessOrderUmbrellaConsumption) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderno() == null ? other.getOrderno() == null : this.getOrderno().equals(other.getOrderno()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getAgentid() == null ? other.getAgentid() == null : this.getAgentid().equals(other.getAgentid()))
            && (this.getNickname() == null ? other.getNickname() == null : this.getNickname().equals(other.getNickname()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getUmbrellaCode() == null ? other.getUmbrellaCode() == null : this.getUmbrellaCode().equals(other.getUmbrellaCode()))
            && (this.getChipNumber() == null ? other.getChipNumber() == null : this.getChipNumber().equals(other.getChipNumber()))
            && (this.getCostprice() == null ? other.getCostprice() == null : this.getCostprice().equals(other.getCostprice()))
            && (this.getMarketprice() == null ? other.getMarketprice() == null : this.getMarketprice().equals(other.getMarketprice()))
            && (this.getMachineId() == null ? other.getMachineId() == null : this.getMachineId().equals(other.getMachineId()))
            && (this.getRentAdress() == null ? other.getRentAdress() == null : this.getRentAdress().equals(other.getRentAdress()))
            && (this.getPathCode() == null ? other.getPathCode() == null : this.getPathCode().equals(other.getPathCode()))
            && (this.getPathNumber() == null ? other.getPathNumber() == null : this.getPathNumber().equals(other.getPathNumber()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getFaultstatus() == null ? other.getFaultstatus() == null : this.getFaultstatus().equals(other.getFaultstatus()))
            && (this.getReturnMachineId() == null ? other.getReturnMachineId() == null : this.getReturnMachineId().equals(other.getReturnMachineId()))
            && (this.getReturnAdress() == null ? other.getReturnAdress() == null : this.getReturnAdress().equals(other.getReturnAdress()))
            && (this.getReturnPathCode() == null ? other.getReturnPathCode() == null : this.getReturnPathCode().equals(other.getReturnPathCode()))
            && (this.getReturnPathNumber() == null ? other.getReturnPathNumber() == null : this.getReturnPathNumber().equals(other.getReturnPathNumber()))
            && (this.getReturnChipNumber() == null ? other.getReturnChipNumber() == null : this.getReturnChipNumber().equals(other.getReturnChipNumber()))
            && (this.getLostStatus() == null ? other.getLostStatus() == null : this.getLostStatus().equals(other.getLostStatus()))
            && (this.getRentRuleId() == null ? other.getRentRuleId() == null : this.getRentRuleId().equals(other.getRentRuleId()))
            && (this.getRentamount() == null ? other.getRentamount() == null : this.getRentamount().equals(other.getRentamount()))
            && (this.getPayamount() == null ? other.getPayamount() == null : this.getPayamount().equals(other.getPayamount()))
            && (this.getDiscountedamount() == null ? other.getDiscountedamount() == null : this.getDiscountedamount().equals(other.getDiscountedamount()))
            && (this.getPaymethod() == null ? other.getPaymethod() == null : this.getPaymethod().equals(other.getPaymethod()))
            && (this.getBegintime() == null ? other.getBegintime() == null : this.getBegintime().equals(other.getBegintime()))
            && (this.getEndtime() == null ? other.getEndtime() == null : this.getEndtime().equals(other.getEndtime()))
            && (this.getAutoendtime() == null ? other.getAutoendtime() == null : this.getAutoendtime().equals(other.getAutoendtime()))
            && (this.getLimitamount() == null ? other.getLimitamount() == null : this.getLimitamount().equals(other.getLimitamount()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderno() == null) ? 0 : getOrderno().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getAgentid() == null) ? 0 : getAgentid().hashCode());
        result = prime * result + ((getNickname() == null) ? 0 : getNickname().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getUmbrellaCode() == null) ? 0 : getUmbrellaCode().hashCode());
        result = prime * result + ((getChipNumber() == null) ? 0 : getChipNumber().hashCode());
        result = prime * result + ((getCostprice() == null) ? 0 : getCostprice().hashCode());
        result = prime * result + ((getMarketprice() == null) ? 0 : getMarketprice().hashCode());
        result = prime * result + ((getMachineId() == null) ? 0 : getMachineId().hashCode());
        result = prime * result + ((getRentAdress() == null) ? 0 : getRentAdress().hashCode());
        result = prime * result + ((getPathCode() == null) ? 0 : getPathCode().hashCode());
        result = prime * result + ((getPathNumber() == null) ? 0 : getPathNumber().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getFaultstatus() == null) ? 0 : getFaultstatus().hashCode());
        result = prime * result + ((getReturnMachineId() == null) ? 0 : getReturnMachineId().hashCode());
        result = prime * result + ((getReturnAdress() == null) ? 0 : getReturnAdress().hashCode());
        result = prime * result + ((getReturnPathCode() == null) ? 0 : getReturnPathCode().hashCode());
        result = prime * result + ((getReturnPathNumber() == null) ? 0 : getReturnPathNumber().hashCode());
        result = prime * result + ((getReturnChipNumber() == null) ? 0 : getReturnChipNumber().hashCode());
        result = prime * result + ((getLostStatus() == null) ? 0 : getLostStatus().hashCode());
        result = prime * result + ((getRentRuleId() == null) ? 0 : getRentRuleId().hashCode());
        result = prime * result + ((getRentamount() == null) ? 0 : getRentamount().hashCode());
        result = prime * result + ((getPayamount() == null) ? 0 : getPayamount().hashCode());
        result = prime * result + ((getDiscountedamount() == null) ? 0 : getDiscountedamount().hashCode());
        result = prime * result + ((getPaymethod() == null) ? 0 : getPaymethod().hashCode());
        result = prime * result + ((getBegintime() == null) ? 0 : getBegintime().hashCode());
        result = prime * result + ((getEndtime() == null) ? 0 : getEndtime().hashCode());
        result = prime * result + ((getAutoendtime() == null) ? 0 : getAutoendtime().hashCode());
        result = prime * result + ((getLimitamount() == null) ? 0 : getLimitamount().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        return result;
    }
}